package com.wxl.common.xbanner.entity;

/**
 * Created by wxl on 2020/3/9.
 */
public class SimpleResBannerInfo extends SimpleBannerInfo{
    private int resId;
    private String title;
    private String action;
    public SimpleResBannerInfo(int resId) {
        this.resId = resId;
    }

    public SimpleResBannerInfo(int resId,String title) {
        this.resId = resId;
        this.title = title;
    }

    public SimpleResBannerInfo(int resId, String title, String action) {
        this.resId = resId;
        this.title = title;
        this.action = action;
    }

    public String getAction() {
        return action;
    }

    @Override
    public Object getXBannerUrl() {
        return resId;
    }

    @Override
    public String getXBannerTitle() {
        return title;
    }
}
